<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<meta content="PreconditionsManager,gugga.tasks.helpers.PreconditionsManager,PreconditionsMet,Accepting,getPreconditionsMet,isAccepting,accept,acceptEventSource,acceptAll,ignore,ignoreEventSource,ignoreAll,add,remove,removeByEventSource,replace,replaceEventSource,contains,reset" name="keywords">
<title>gugga.tasks.helpers.PreconditionsManager</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'PreconditionsManager - API Documentation';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?gugga/tasks/helpers/PreconditionsManager.html&amp;gugga/tasks/helpers/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;PreconditionsManager</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a>&nbsp;| <a href="#eventSummary">Events</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class PreconditionsManager"); titleBar_setSubNav(false,true,false,false,true,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">gugga.tasks.helpers</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class PreconditionsManager</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">PreconditionsManager <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> flash.events.EventDispatcher</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td><a href="IPreconditionsManager.html">IPreconditionsManager</a></td>
</tr>
</table>
<p></p>
  <code>PreconditionsManager</code> is a checklist and manager for 
  preconditions. Precondition is an <code>EventDescriptor</code> for an event 
  that we expect to be raised at some point in time. When this event is raised 
  the <code>PreconditionsManager</code> marks the precondition as checked in 
  the preconditions checklist.
  <p> 
  When creating the <code>PreconditionsManager</code> through its constructor 
  it can be set as <b><i>accepting</i></b> or as <b><i>unaccepting</i></b>. 
  When <code>PreconditionsManager</code> is set as <b><i>unaccepting</i></b> 
  it will not listen for the newly added preconditions, unless explicitly this 
  precondition is <b><i>accepted</i></b>, which can be accomplished with the 
  <code>accept(aPrecondition : EventDescriptor)</code> and 
  <code>acceptEventSource(aEventSource : IEventDispatcher)</code> methods.
  <p>
  Example for an unaccepting <code>PreconditionsManager</code>:
  <code>
    import gugga.sequence.PreconditionsManager;
    import gugga.common.EventDescriptor;
    import gugga.common.IEventDispatcher;
    
    var isAccepting:Boolean = false;
    var preconditionsManager:PreconditionsManager
     = new PreconditionsManager(isAccepting);
    
    var eventSource:IEventDispatcher = new SomeEventSource();
    var precondition:EventDescriptor = new EventDescriptor(
      eventSource, 
      "someEvent");
    
    preconditionsManager.add(precondition);
    
    // Now precondition is added to the checklist, but preconditionsManager  
    // is still not listening for the described event. To start a listener 
    // for the described event, additional function call is needed:
    preconditionsManager.accept(precondition);
    
    // The second way to accomplish this is:
    preconditionsManager.acceptEventSource(eventSource);
  </code>
  <p>
  <code>acceptAll()</code> method will set the 
  <code>PreconditionsManager</code> as <b><i>accepting</i></b> and will start 
  listeners for all preconditions in the checklist. 
  <p>
  <code>ignoreAll()</code> method will set the 
  <code>PreconditionsManager</code> as <b><i>unaccepting</i></b> and will 
  stop all started listeners. 
  <p>
  To check the current <b><i>accepting</i><b> state of the 
  <code>PreconditionsManager</code> use the <code>Accepting</code> property or 
  the <code>isAccepting()</code> method.
  <p>
  When all of the preconditions are met, the <code>PreconditionsManager</code> 
  fires the <b><i>preconditionsMet</i></b> event.
  <p>
  The <code>PreconditionsManager</code> is not a task, and in order to dispach 
  <b><i>completed</i></b> event it is wrapped up in the  
  <code>PreconditionsTask</code> class, which listens for the 
  <b><i>preconditionsMet</i></b> event.
  
  <p></p>
<p>
<span class="classHeaderTableLabel">See also</span>
</p>
<div class="seeAlso">
<a href="IPreconditionsManager.html" target="">IPreconditionsManager</a>
<br>
<a href="../../tasks/PreconditionsTask.html" target="">gugga.tasks.PreconditionsTask</a>
</div>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#Accepting">Accepting</a> : Boolean<div class="summaryTableDescription">[read-only]</div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#PreconditionsMet">PreconditionsMet</a> : Boolean<div class="summaryTableDescription">[read-only]</div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#PreconditionsManager()">PreconditionsManager</a>(aAccepting:Boolean = true)</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#accept()">accept</a>(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#acceptAll()">acceptAll</a>():void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#acceptEventSource()">acceptEventSource</a>(aEventSource:IEventDispatcher):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#add()">add</a>(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#contains()">contains</a>(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):Boolean</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#getPreconditionsMet()">getPreconditionsMet</a>():Boolean</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ignore()">ignore</a>(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ignoreAll()">ignoreAll</a>():void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#ignoreEventSource()">ignoreEventSource</a>(aEventSource:IEventDispatcher):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#isAccepting()">isAccepting</a>():Boolean</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#remove()">remove</a>(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#removeByEventSource()">removeByEventSource</a>(aEventSource:IEventDispatcher):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#replace()">replace</a>(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>, aNewPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#replaceEventSource()">replaceEventSource</a>(aEventSource:IEventDispatcher, aNewEventSource:IEventDispatcher):void</div>
<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#reset()">reset</a>():void</div>
<div class="summaryTableDescription">
    <code>reset()</code> has slightly unexpected behaviour.</div>
</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
</table>
</div>
<a name="eventSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Events</div>
<table id="summaryTableEvent" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Event</th><th>Summary</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#event:preconditionsMet">preconditionsMet</a>
</div>
</td><td class="summaryTableDescription summaryTableCol">&nbsp;</td><td class="summaryTableOwnerCol">PreconditionsManager</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="Accepting"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">Accepting</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>Accepting:Boolean</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get Accepting():Boolean</code>
<br>
</div>
<a name="PreconditionsMet"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">PreconditionsMet</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>PreconditionsMet:Boolean</code>&nbsp;&nbsp;[read-only]<span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get PreconditionsMet():Boolean</code>
<br>
</div>
<a name="constructorDetail"></a>
<div class="detailSectionHeader">Constructor detail</div>
<a name="PreconditionsManager()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">PreconditionsManager</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
</tr>
</table>
<div class="detailBody">
<code>public function PreconditionsManager(aAccepting:Boolean = true)</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aAccepting</span>:Boolean</code> (default = <code>true</code>)<code></code></td>
</tr>
</table>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="accept()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">accept</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function accept(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
</table>
</div>
<a name="acceptAll()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">acceptAll</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function acceptAll():void</code>
</div>
<a name="acceptEventSource()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">acceptEventSource</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function acceptEventSource(aEventSource:IEventDispatcher):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aEventSource</span>:IEventDispatcher</code></td>
</tr>
</table>
</div>
<a name="add()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">add</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function add(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
</table>
</div>
<a name="contains()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">contains</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function contains(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):Boolean</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
</table>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
</div>
<a name="getPreconditionsMet()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">getPreconditionsMet</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function getPreconditionsMet():Boolean</code>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
</div>
<a name="ignore()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ignore</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function ignore(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
</table>
</div>
<a name="ignoreAll()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ignoreAll</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function ignoreAll():void</code>
</div>
<a name="ignoreEventSource()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">ignoreEventSource</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function ignoreEventSource(aEventSource:IEventDispatcher):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aEventSource</span>:IEventDispatcher</code></td>
</tr>
</table>
</div>
<a name="isAccepting()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">isAccepting</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function isAccepting():Boolean</code>
<p></p>
<span class="label">Returns</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20"></td><td><code>Boolean</code></td>
</tr>
</table>
</div>
<a name="remove()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">remove</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function remove(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
</table>
</div>
<a name="removeByEventSource()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">removeByEventSource</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function removeByEventSource(aEventSource:IEventDispatcher):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aEventSource</span>:IEventDispatcher</code></td>
</tr>
</table>
</div>
<a name="replace()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">replace</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function replace(aPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>, aNewPrecondition:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a>):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">aNewPrecondition</span>:<a href="../../eventHelpers/EventDescriptor.html">EventDescriptor</a></code></td>
</tr>
</table>
</div>
<a name="replaceEventSource()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">replaceEventSource</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function replaceEventSource(aEventSource:IEventDispatcher, aNewEventSource:IEventDispatcher):void</code><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">aEventSource</span>:IEventDispatcher</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">aNewEventSource</span>:IEventDispatcher</code></td>
</tr>
</table>
</div>
<a name="reset()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">reset</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function reset():void</code><p>
    <code>reset()</code> has slightly unexpected behaviour. It resets the 
    preconditions checklist - already met preconditions are unchecked and 
    marked as uncompleted. Then it starts listeners for <b><i>all</i></b> 
    preconditions in the checklist, without taking into consideration the 
    <b><i>accepting</i></b> state of the <code>PreconditionsManager</code>. 
    This simply means that <code>reset()</code> will start listeners for 
    preconditions that need to be explicitly set as <b><i>accepted</i></b> 
    through the <code>accept(aPrecondition : EventDescriptor)</code> and 
    <code>acceptEventSource(aEventSource : IEventDispatcher)</code> methods. 
    </p><p>
    <b>IMPORTANT NOTICE!!!</b>
    <p>
    The current <code>reset()</code> method is more like a 
    <code>resetAcceptAllAndRetainCurrentAcceptingState()</code> method. 
    Future versions should consired the introduction of an additional 
    method, with the name <code>restart()</code>. 
    The <code>restart()</code> method will reset the preconditions 
    checklist, and will attempt to start listeners for all preconditions, 
    including already met(completed) preconditions and it will take into 
    consideration the precondition's <b><i>accept</i></b> state. It will 
    start listeners only for the preconditions that do not need to be set 
    explicitly as <b><i>accepting</i></b>. This implies the introduction of 
    a <code>Precondition</code> object, that will store an 
    <code>EventDescriptor</code> and an <b><i>accepting</i></b> state for 
    this precondition.
   </div>
<div class="detailSectionHeader">Event detail</div>
<a name="event:preconditionsMet"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">preconditionsMet</td><td class="detailHeaderType">event&nbsp;</td>
</tr>
</table>
<div class="detailBody"></div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
